package homework;

import java.io.*;

public class H01 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("D:\\pic.jpg"));
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("D:\\newPic.jpg"));
        int len;
        byte[] bytes = new byte[1024];
        while ((len = bis.read(bytes))!=-1){
            bos.write(bytes,0,len);
        }
        bis.close();
        bos.close();
        System.out.println("第一次修改");
        System.out.println("第二次修改");
        System.out.println("第三次修改");
        System.out.println("第四次修改");
        System.out.println("修改");

    }
}
